version: '3.9'

# sudo service postgresql stop
# sudo docker-compose up

# sudo php artisan serve

# http://127.0.0.1:8000/docs/oas#/

services:
  db:
    container_name: pg_db
    environment:
      - POSTGRES_PASSWORD=admin
      - POSTGRES_USER=admin
      - POSTGRES_DB=my_db
    image: postgres:14.3-alpine
    volumes:
      - "./postgres_data:/wissen_books/Wissen_books/postgresql/"
    ports:
      - "5000:5432"
    
  # pgadmin:
  #   container_name: pgadmin
  #   image: dpage/pgadmin4
  #   environment:
  #     PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-noemail@noemail.com}
  #     PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-root}
  #   ports:
  #     - "5050:80"

# version: '3.9'

# sudo service postgresql stop
# sudo docker-compose up

# http://127.0.0.1:8000/docs/oas#/

# services:
#   app:
#     build:
#       context: .
#       dockerfile: Dockerfile
#     container_name: laravel_app
#     restart: unless-stopped
#     volumes:
#       - .:/var/www/html
#       - ./storage:/var/www/html/storage
#       - ./bootstrap/cache:/var/www/html/bootstrap/cache
#     environment:
#       - APP_ENV=local
#       - APP_DEBUG=true
#       - APP_KEY=base64:...
#       - DB_CONNECTION=pgsql
#       - DB_HOST=db
#       - DB_PORT=5432
#       - DB_DATABASE=laravel
#       - DB_USERNAME=postgres
#       - DB_PASSWORD=secret
#       - REDIS_HOST=redis
#       - REDIS_PASSWORD=null
#       - REDIS_PORT=6379
#       - KAFKA_BROKER=kafka:9092
#     depends_on:
#       - db
#       # - redis
#       # - kafka
#     ports:
#       - "8080:80"

#   db:
#     container_name: pg_db
#     environment:
#       - POSTGRES_PASSWORD=admin
#       - POSTGRES_USER=admin
#       - POSTGRES_DB=my_db
#     image: postgres:14.3-alpine
#     volumes:
#       - "./postgres_data:/wissen_books/Wissen_books/postgresql/"
#     ports:
#       - "5000:5432"
    
  # redis:
  #   image: redis:6
  #   container_name: laravel_redis

  # kafka:
  #   image: bitnami/kafka:latest
  #   container_name: laravel_kafka
  #   environment:
  #     KAFKA_BROKER_ID: 1
  #     KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  #     ALLOW_PLAINTEXT_LISTENER: "yes"
  #   ports:
  #     - "9092:9092"
  #   depends_on:
  #     - zookeeper

  # zookeeper:
  #   image: bitnami/zookeeper:latest
  #   container_name: zookeeper
  #   ports:
  #     - "2181:2181"
  # pgadmin:
  #   container_name: pgadmin
  #   image: dpage/pgadmin4
  #   environment:
  #     PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-noemail@noemail.com}
  #     PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-root}
  #   ports:
  #     - "5050:80"
